﻿using Cl.Model.Results;
using Cl.Utils.Primitives.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Service.Service.Workflows
{
    public interface IElsaWorkflow : IScopedService
    {
        Task<ResultInfoModel> StartAuditWorkFlowAsync(string auditWorkName, string contextId);
        Task<ResultInfoModel> IsAllowUseAudit(string workName, string activeName, string userCode, string contextId);
        Task<ResultInfoModel> AuditWorkFlowAsync(string workName, string activeName, string contextId, string userCode, bool auditStatus, string remark, string entityId);
        Task<ResultInfoModel> SendWorkflowSignal(List<string> contextIds, string signalerName);
    }
}
